package com.yangquan.mapper;

import com.yangquan.entity.Student;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

//public interface StudentMapper extends Mapper<Student> {
public interface StudentMapper{

    @Select("select distinct salary from student")
    List<String> getStudentSalary();

    List<Map<String,Object>> getStudent();

//    @Select(" select s.id,s.name,salary from student s , teacher t\n" +
//            "             where s.id = t.id and t.id=3")
    List<Map<String,Object>> getStudentData();

    void insert(Student e);

//    void insertStudent(Student student);
}
